package com.dnzx.dao;

import com.dnzx.model.ArticleBO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* 文章管理Dao
 */
@Repository
public interface IArticleDao {

	public void save(ArticleBO articleBO);

	public void delete(Long id);

	public void update(ArticleBO articleBO);

	public ArticleBO get(Long id);

	public List<ArticleBO> queryList(ArticleBO articleBO);

	public List<ArticleBO> queryPage(@Param("pageSize") int pageSize,
                                    @Param("startRow") int startRow, @Param("bo") ArticleBO bo);
	
	public int queryCount(ArticleBO articleBO);

}
